
<div id="icon-options-general" class="icon32"><br></div>
<h2>Réglages des généraux</h2>

<form action="<?php echo $CFG->config['base_url']?>setting/admin/create" method="post">

<h3>Réglages généraux</h3>
<p>Les tailles précisées ci-dessous déterminent les dimensions maximales (en pixels) à utiliser lors de l’insertion d’une image dans le corps d’un article.</p>

<table class="form-table">
<tbody>
<tr valign="top">
<th scope="row"><label for="blogname">Titre du site</label></th>
<td>
<input type="text" class="regular-text" value="<?php echo $general['name']?>" id="name" name="general[name]">
<p class="description"> Maximum 69 charactères.</p>
</td>
</tr>

<tr valign="top">
<th scope="row"><label for="blogdescription">Description</label></th>
<td><input type="text" class="regular-text" value="<?php echo $general['description']?>" id="description" name="general[description]">
<p class="description">En quelques mots, décrivez la raison d’être de ce site, Entre 150-160 characteres.</p></td>
</tr>

<tr valign="top">
<th scope="row"><label for="blogdescription">Mots Clés</label></th>
<td><input type="text" class="regular-text" value="<?php echo $general['keywords']?>" id="keywords" name="general[keywords]">
<p class="description">Entre 7-8 mots clés, séparé par , .</p></td>
</tr>

<tr valign="top">
<th scope="row"><label for="siteurl">Adresse web du site</label></th>
<td><input type="text" class="regular-text code" value="<?php echo $general['base_url']?>" id="base_url" name="general[base_url]"></td>
</tr>

<tr valign="top">
<th scope="row"><label for="admin_email">Adresse de messagerie </label></th>
<td><input type="text" class="regular-text ltr" value="<?php echo $general['admin_email']?>" id="admin_email" name="general[admin_email]">
<p class="description">Cette adresse n’est utilisée que pour l’administration du site&nbsp;; par exemple, la notification de l’inscription d’un nouvel utilisateur.</p></td>
</tr>

<tr>
<th scope="row">Format de date</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Format de date</span></legend>
	<label title="d/m/Y"><input type="radio" value="d/m/Y"  name="date_format" onclick="$('#format_date').val(this.value)"/> <span><?php echo date('d/m/Y')?></span></label><br>
	<label title="j F Y"><input type="radio" value="j F Y"  name="date_format" onclick="$('#format_date').val(this.value)"/> <span><?php echo date('j F Y')?></span></label><br>
	<label title="Y/m/d"><input type="radio" value="Y/m/d"  name="date_format" onclick="$('#format_date').val(this.value)"/> <span><?php echo date('Y/m/d')?></span></label><br>
	<label title="m/d/Y"><input type="radio" value="m/d/Y"  name="date_format" onclick="$('#format_date').val(this.value)"/> <span><?php echo date('m/d/Y')?></span></label><br>
	<label>Personnalisé&nbsp;: </label>
	<input type="text" class="small-text" value="<?php echo $general['date_format']?>" name="general[date_format]" id='format_date'> <span class="example"><?php echo date($general['date_format'])?></span>

	</fieldset>
</td>
</tr>

<tr valign="top">
<th scope="row"><label for="admin_currency">Symbol </label></th>
<td><input type="text" class="regular-text ltr" value="<?php echo $general['admin_currency']?>" id="admin_currency" name="general[admin_currency]" />
<p class="description">Affichier dans la facture</p></td>
</tr>

<tr valign="top">
<th scope="row"><label for="admin_template">Templete d'administrateur </label></th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Dossier Template</span></legend>
	<?php foreach($templateAdmin as $templateKey=>$template){
	$template=basename($template);
	?>
	<label title="<?php echo $template?>"><input type="radio" value="<?php echo $template?>"  name="admin_template" onclick="$('#admin_template').val(this.value)"/> <span><?php echo $template?></span></label><br>
	<?php }?>
	<label>Personnalisé&nbsp;: </label>
	<input type="text" class="small-text" value="<?php echo $general['admin_template']?>" name="general[admin_template]" id='admin_template'>

	</fieldset>
</td>
</tr>

<tr valign="top">
<th scope="row"><label for="admin_template">Templete Front Office </label></th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Dossier Template</span></legend>
	<?php
	foreach($templateAdmin as $templateKey=>$template){
	$template=basename($template);
	?>
	<label title="<?php echo $template?>"><input type="radio" value="<?php echo $template?>"  name="front_template" onclick="$('#front_template').val(this.value)"/> <span><?php echo $template?></span></label><br>
	<?php }?>
	<label>Personnalisé&nbsp;: </label>
	<input type="text" class="small-text" value="<?php echo $general['front_template']?>" name="general[front_template]" id='front_template'>

	</fieldset>
</td>
</tr>
</tbody>
</table>




<p class="submit">
<input name="medias_submit" id="submit" class="button button-primary" value="Enregistrer les modifications" type="submit"></p>
</form>

